//
//  WJY_SongRankCell.m
//  MooMusic
//
//  Created by wjy on 15/10/22.
//  Copyright © 2015年 wjy. All rights reserved.
//

#import "WJY_SongRankCell.h"

@implementation WJY_SongRankCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.img = [[UIImageView alloc] init];
//        self.img.backgroundColor = [UIColor yellowColor];
        self.titelName = [[UILabel alloc] init];
//        self.titelName.backgroundColor = [UIColor orangeColor];
        self.subName = [[UILabel alloc] init];
//        self.subName.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:self.img];
        [self.contentView addSubview:self.titelName];
        [self.contentView addSubview:self.subName];
        
    }
    return self;
    
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.img.frame = CGRectMake(5, 5, SCREENWIDTH / 4, 100);
    self.titelName.frame = CGRectMake(110, self.contentView.frame.size.height / 2 - 32.5,  SCREENWIDTH - 120, 30);
    self.subName.frame = CGRectMake(110, self.contentView.frame.size.height / 2 + 2.5, SCREENWIDTH - 120, 30);
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
